﻿<Window x:Class="SmartCardClient.Views.SelectCardView"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		Title="SelectCardView" Height="300" Width="300">
	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="*"/>
			<RowDefinition Height="auto"/>
		</Grid.RowDefinitions>

		<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
			<Button Content="Ok" Height="23" VerticalAlignment="Top" Width="75" Margin="5" Command="{Binding Path=OkCommand}" />
			<Button Content="Cancel" Height="23" VerticalAlignment="Top" Width="75" Margin="5" Command="{Binding Path=CancelCommand}"/>
		</StackPanel>

		<ListBox Grid.Row="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
				 ItemsSource="{Binding Path=Readers, Mode=OneTime}" SelectedItem="{Binding Path=SelectedReader}">
			<ListBox.ItemTemplate>
				<DataTemplate>
					<StackPanel Orientation="Horizontal">
						<TextBlock Text="{Binding Path=FriendlyName}"/>
					</StackPanel>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
	</Grid>
</Window>
